import { request } from "@/utils/service"

export function resetPassword(data: any) {
  return request({
    url: "/bg/admin/resetPassword",
    method: "post",
    data
  })
}

export function updatePassword(data: any) {
  return request({
    url: "/bg/admin/updatePassword",
    method: "post",
    data
  })
}

export function saveOrUpdate(data: any) {
  return request({
    url: "/bg/admin/saveOrUpdate",
    method: "post",
    data
  })
}

export function updateStatus(data: any) {
  return request({
    url: "/bg/admin/updateStatus",
    method: "post",
    data
  })
}

export function getList(params: any) {
  return request({
    url: "/bg/admin/getList",
    method: "get",
    params
  })
}


export function deleteById(params: any) {
  return request({
    url: "/bg/admin/deleteById",
    method: "get",
    params
  })
}

export function getAdminById(params: any) {
  return request({
    url: "/bg/admin/getAdminById",
    method: "get",
    params
  })
}


